from django.db import models
from notifications.models import Notification
# Create your models here.


class MyNotification(Notification):
    class Meta:
        proxy = True  # 设置代理模型
        db_table = 'notifications_notification'

    def __str__(self):
        return self.verb


# from swapper import swappable_setting
#
# from notifications.base.models import AbstractNotification, notify_handler  # noqa
#
#
# class MyNotification(AbstractNotification):
#
#     class Meta(AbstractNotification.Meta):
#         abstract = False
#         swappable = swappable_setting('my_notifications', 'MyNotification')
#         db_table = 'notifications_notification'
